import Vue from 'vue'
import App from './App'

import '@/api/index.js' // 接口

import store from '@/store/index.js'

import Utils from '@/utils/index.js' // 工具类
Vue.prototype.$utils = Utils
Vue.prototype.$format = Utils.format
Vue.prototype.$isEmpty = Utils.isEmpty

// scss 颜色变量
import variables from 'uni.scss'
Vue.prototype.$variables = variables

// 全局 mixin
import BaseMixin from '@/mixins/base.js'
Vue.mixin(BaseMixin)

// 用于页面栈事件传递
Vue.prototype.$eventHub = Vue.prototype.$eventHub || new Vue()

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})

app.$mount()
